{
  char solid[24][100] = {"thebox","thecone","theellipsoid","theeltube","theelcone","theorb", "thepara", "thepolycone1", "thepolycone2", "thepolyhedra1", "thepolyhedra2", "thesphere", "thetorus", "thetrd", "thetrap", "thehype", "thecuttube", "thetube", "twistbox", "twisttrd", "twisttrap", "twisttube", "theXtru", "thearb8"};

  for(int i=0; i<24; i++)
  {
   cout<<"<volume name=\""<<solid[i]<<"Vol\">"<<endl;
   cout<<"\t<materialref ref=\"G4_AIR\" />"<<endl;
   cout<<"\t<solidref ref=\""<<solid[i]<<"\" />"<<endl;
   cout<<"</volume>\n"<<endl;
  }
 
  cout<<"<volume name=\"worldVol\">"<<endl;
  cout<<"\t<materialref ref=\"G4_AIR\" />"<<endl;
  cout<<"\t<solidref ref=\"worldBox\" />"<<endl;
  for(int i=0; i<24; i++)
  {
      double x = -250 + 100 * (i%5);
      double y = -250 + 100 * (i/5);
      cout<<"\t<physvol>"<<endl;
      cout<<"\t\t<volumeref ref=\""<<solid[i]<<"Vol\" />"<<endl;
      cout<<"\t\t<position x=\""<<x<<"\" y=\""<<y<<"\" z=\"0\" unit=\"mm\" />"<<endl;
      cout<<"\t</physvol>"<<endl;
   }
   cout<<"</volume>"<<endl;
}
